<template>
    <div>
        B组件
        <h2>接收：</h2>
        <ul>
            <li>{{$route.params.id}}</li>
            <li>{{$route.params.name}}</li>
        </ul>
    </div>
</template>

<script>
export default {
    comments:{},
    data(){
        return{

        }
    },
    methods: {
    }
}
</script>

<style lang="less"></style>